package com.tenebrous.jestic.mapper.idao.framwork.meber.author;

import com.tenebrous.jestic.entity.framwork.meber.author.AuthRole;
import com.tenebrous.jestic.entity.framwork.meber.organ.OrgUser;
import com.tenebrous.jestic.mapper.ISuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper
public interface AuthRoleMapper extends ISuperMapper<AuthRole> {

    List<String> selectMenuIdsByRoleid(@Param("roleid") String roleid);

    List<OrgUser> selectUserListByRoleid(@Param("roleid") String roleid, @Param("realname") String realname);

    List<AuthRole> selectRoleListByUserid(@Param("userid") String userid, @Param("rolename") String rolename);

    List<AuthRole> selectByCondition(@Param("name") String name);

    void deleteRoleMenuByCondition(@Param("roleid") String roleid);

    void deleteRoleUserByCondition(@Param("roleid") String roleid, @Param("userid") String userid);

    void deleteById(@Param("roleid") String roleid);

    void deleteRoleProcessByCondition(@Param("roleid") String roleid, @Param("procdefid") String procdefid);

}